import request from '../utils/request';
export const fetchData = query => {
    return request({
        url: './table.json',
        method: 'get',
        params: query
    });
};

//  获取公司列表数据
export const getCompanyList = query => {
    return request({
        url: `/employee/getCompanyList`,
        method: "get",
        params: query
    })
}

// 获取用户列表数据
export const getUserList = query => {
    return request({
        url: `/user/employee/getUserList`,
        method: "get",
        params: query
    })
}
// 获取用户申请列表
export const getApplyList = query => {
    return request({
        url: `/employee/getApplyList`,
        method: "get",
        params: query
    })
}
// 更新单个通告
export const updateNotice = form => {
    return request({
        url: `/notice/updateNotice`,
        method: "get",
        params: form
    })
}
// 删除单个通告
export const deleteNotice = query => {
    return request({
        url: `/notice/deleteNotice`,
        method: "get",
        params: query
    })
}
// 获取系统的通告列表
export const getNoticeList = query => {
    return request({
        url: `/notice/getNoticeList`,
        method: "get",
        params: query
    })
}
// 根据notice_id查询单个notice
export const searchNotice = query => {
    return request({
        url: `/notice/searchNotice`,
        method: "get",
        params: query
    })
}